//
//  AppDelegate.swift
//  微博
//
//  Created by 行知 on 16/8/9.
//  Copyright © 2016年 xinzhi. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
       //1.创建wwindow
        window = UIWindow(frame: UIScreen.mainScreen().bounds)

        //2.设置根控制器
        window?.rootViewController = MainViewController()
        
        //3.显示
        window?.makeKeyAndVisible()
        
        return true
    }
}



//MARK:- 输出设置
func YJLog<T>(message: T,
           file: String = #file,
           method: String = #function,
           line: Int = #line
           ) {
    
    #if YJ_DEBUG
    print("\((file as NSString).lastPathComponent)[\(line)],\(method):\(message)")
    
    #endif
}



